/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Classes;

import java.util.ArrayList;
import java.util.Objects;

/**
 * Représente un ensemble de restaurants
 * @author userinsta
 */
public class Marque {
    private static Marque _instance;
    private String _nom;
    private ArrayList<Restaurant> _restaurants;
    private Stock _stock;
    private ArrayList<Salarie> _salaries;
    /**
     * Constructors
     * Getters and Setters
     */
    private Marque() {}

    private Marque(String nom, ArrayList<Restaurant> restaurants, Stock stock, ArrayList<Salarie> salaries) {
        this.setNom(nom);
        this.setRestaurants(restaurants);
        this.setStock(stock);
        this.setSalaries(salaries);
    }
    
    public static Marque getInstance(){
        if (_instance == null)
            _instance = new Marque();
        return _instance;
    }
    
    public static Marque getInstance(String nom, ArrayList<Restaurant> restaurants, Stock stock, ArrayList<Salarie> salaries){
        if (_instance == null)
            _instance = new Marque(nom, restaurants, stock, salaries);
        return _instance;
    }
    
    public String getNom() {
        return _nom;
    }

    public void setNom(String nom) {
        this._nom = nom;
    }
    
    public ArrayList<Restaurant> getRestaurants() {
        return _restaurants;
    }

    public void setRestaurants(ArrayList<Restaurant> _restaurants) {
        this._restaurants = _restaurants;
    }

    public Stock getStock() {
        return _stock;
    }

    public void setStock(Stock _stock) {
        this._stock = _stock;
    }

    public ArrayList<Salarie> getSalaries() {
        return _salaries;
    }

    public void setSalaries(ArrayList<Salarie> salaries) {
        this._salaries = salaries;
    }
    
}
